#include "SceneFactory.h"

#include "MainMenuLayer.h"
#include "GameLayer.h"
#include "SchoolLayer.h"

Scene* SceneFactory::createMainMenu()
{
	auto scene = Scene::create();
	scene->addChild(MainMenuLayer::create());
	return scene;
}

Scene* SceneFactory::createSchool()
{
	auto scene = Scene::createWithPhysics();
	scene->getPhysicsWorld()->setGravity(Vec2(0, 0));
	scene->getPhysicsWorld()->setDebugDrawMask(PhysicsWorld::DEBUGDRAW_ALL);
	scene->addChild(SchoolLayer::create());
	return scene;
}

Scene* SceneFactory::createGame()
{
	auto scene = Scene::create();
	scene->addChild(GameLayer::create());
	return scene;
}
